﻿//-----------------------------------------------------------------------------
// <copyright file="ViewModelCreatedWithViewElement.cs" company="William E. Kempf">
//     Copyright (c) William E. Kempf.
// </copyright>
//-----------------------------------------------------------------------------

namespace OnyxTests.TestArtifacts
{
    using System.Windows;

    /// <summary>
    /// Defines a test "ViewModel" with a constructor taking a "view element".
    /// </summary>
    public class ViewModelCreatedWithViewElement
    {
        /// <summary>
        /// The "view element" associated with this instance.
        /// </summary>
        private DependencyObject viewElement;

        /// <summary>
        /// Initializes a new instance of the <see cref="ViewModelCreatedWithViewElement"/> class.
        /// </summary>
        /// <param name="viewElement">The view element.</param>
        public ViewModelCreatedWithViewElement(DependencyObject viewElement)
        {
            this.viewElement = viewElement;
        }

        /// <summary>
        /// Gets the view element.
        /// </summary>
        /// <value>The view element.</value>
        public DependencyObject ViewElement
        {
            get { return this.viewElement; }
        }
    }
}
